package myky.com.doctorapp.model;

import com.xiangyao.train.utils.RxScedulerHelper;

import io.reactivex.Observable;
import myky.com.doctorapp.api.ApiManager;
import myky.com.doctorapp.base.BaseEntity;
import myky.com.doctorapp.contract.ConsultDetailsContract;
import myky.com.doctorapp.entity.ConsultDetailsEntity;
import myky.com.doctorapp.entity.ConsultRecordEntity;

public class ConsultDetailsModel implements ConsultDetailsContract.Model {
    @Override
    public Observable<BaseEntity<ConsultDetailsEntity>> findConsultDeatails(int consultId) {


        return ApiManager.getApistore().findConsultDeatails(consultId).compose(RxScedulerHelper.INSTANCE.io_main());
    }
}
